package stu.aistar.day01.homeworkj;

public class screen {
 private String typ;
 private int size;
 private String brand;
 public screen(){}
 public screen(String typ,int size,String brand){
     this.brand= brand;
     this.size = size;
     this.typ = typ;

 }

    public String getTyp() {
        return typ;
    }

    public void setTyp(String typ) {
        this.typ = typ;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {

        if(size == 17 || size==23 || size==19 || size==25){
            this.size = size;
            return;
        }
        this.size=17;

    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }
    public void check() {
        if (size ==17){}
        else if (size ==19){}
        else if (size ==25){}
        else if (size ==23){}
        else size =17;

    }

}
